﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Procenge.PortalVendas.Models.Fornecedor>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cadastro de Fornecedores
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 align="center">Cadastro de Fornecedores</h2>

    <table align="center">
        <tr align="center">
            <th></th>
            <th>
                CNPJ
            </th>
            <th>
                NOME
            </th>
            <th>
                FONE
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id=item.cnpj }) %> |
                <%: Html.ActionLink("Detalhes", "Details", new { id=item.cnpj })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.cnpj })%>
            </td>
            <td>
                <%: item.cnpj %>
            </td>
            <td>
                <%: item.nome %>
            </td>
            <td>
                <%: item.fone %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p align="center">
        <%: Html.ActionLink("Novo", "Create") %>
    </p>

</asp:Content>

